package com.cap.bts.crmdp.dealer.remind.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name="tm_raw_vehicle")
@AttributeOverrides({
    @AttributeOverride(name="createBy", column=@Column(name="CREATE_BY")),
    @AttributeOverride(name="createDate", column=@Column(name="CREATE_DATE", nullable = false)),
    @AttributeOverride(name="lastUpdateBy", column=@Column(name="LAST_UPDATE_BY")),
    @AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_DATE"))
})
public class Vehicle extends BaseDomain implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private Long serviceCenterID;
	private String vin;
	private String customerID;
	private String vehicleBrandName;
	private String vehicleModel;
	private String vehicleVariant;
	private String vehicleID;
	private Long year;
	private String sizeOfEngine;
	private String lyID;
	private String licensePlate;
	private Date creationDate;
	private Date lastModificationDate;
	private Date registerDate;
	private String crmMember;
	
	@Id
    @GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="service_center_id")
	public Long getServiceCenterID() {
		return serviceCenterID;
	}
	public void setServiceCenterID(Long serviceCenterID) {
		this.serviceCenterID = serviceCenterID;
	}
	@Column(name="vin")
	public String getVin() {
		return vin;
	}
	public void setVin(String vin) {
		this.vin = vin;
	}
	@Column(name="customer_id")
	public String getCustomerID() {
		return customerID;
	}
	public void setCustomerID(String customerID) {
		this.customerID = customerID;
	}
	@Column(name="vehicle_brand_name")
	public String getVehicleBrandName() {
		return vehicleBrandName;
	}
	public void setVehicleBrandName(String vehicleBrandName) {
		this.vehicleBrandName = vehicleBrandName;
	}
	@Column(name="vehicle_model")
	public String getVehicleModel() {
		return vehicleModel;
	}
	public void setVehicleModel(String vehicleModel) {
		this.vehicleModel = vehicleModel;
	}
	@Column(name="vehicle_variant")
	public String getVehicleVariant() {
		return vehicleVariant;
	}
	public void setVehicleVariant(String vehicleVariant) {
		this.vehicleVariant = vehicleVariant;
	}
	@Column(name="vehicle_id")
	public String getVehicleID() {
		return vehicleID;
	}
	public void setVehicleID(String vehicleID) {
		this.vehicleID = vehicleID;
	}
	@Column(name="year_time")
	public Long getYear() {
		return year;
	}
	public void setYear(Long year) {
		this.year = year;
	}
	@Column(name="size_of_engine")
	public String getSizeOfEngine() {
		return sizeOfEngine;
	}
	public void setSizeOfEngine(String sizeOfEngine) {
		this.sizeOfEngine = sizeOfEngine;
	}
	@Column(name="ly_id")
	public String getLyID() {
		return lyID;
	}
	public void setLyID(String lyID) {
		this.lyID = lyID;
	}
	@Column(name="license_plate")
	public String getLicensePlate() {
		return licensePlate;
	}
	public void setLicensePlate(String licensePlate) {
		this.licensePlate = licensePlate;
	}
	@Column(name="creation_date")
	public Date getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	@Column(name="last_modification_date")
	public Date getLastModificationDate() {
		return lastModificationDate;
	}
	public void setLastModificationDate(Date lastModificationDate) {
		this.lastModificationDate = lastModificationDate;
	}
	@Column(name="register_date")
	public Date getRegisterDate() {
		return registerDate;
	}
	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}
	@Column(name="crm_member")
	public String getCrmMember() {
		return crmMember;
	}
	public void setCrmMember(String crmMember) {
		this.crmMember = crmMember;
	}
	
	
}
